# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-twilio
pkgver=8.11.0
pkgrel=0
arch="noarch"
pkgdesc="Twilio API client and TwiML generator"
url="https://pypi.python.org/project/twilio"
license="MIT"
depends="
	py3-flake8
	py3-mock
	py3-nose
	py3-python-jwt
	py3-requests
	py3-twine
	py3-tz
	"
makedepends="
	py3-gpep517
	py3-installer
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
_pyname=twilio
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/t/twilio/twilio-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
options="!check" # No testsuite

build() {
	gpep517 build-wheel \
		--wheel-dir dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		dist/*.whl
}

sha512sums="
86e1f55bdcf0b2d8434cd08bc5055ada7cb4f31ce25029737748dd2a4c1a43f0cfe6b627474853874f77e2844d1da69b5f974f43716a6998133733f26db63991  py3-twilio-8.11.0.tar.gz
"
